package com.tfswue.jqr.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("borrow_record")
public class Borrow {
    private Long id;
    private Long userId;
    private Long bookId;
    private Date borrowDate;

    //  嵌入Book对象，并标记为非表字段
    @TableField(exist = false)
    private Book book;
}
